<template>
  <div id="app">
    <img src="./assets/logo.png">
    <!-- <MyComponent /> -->
    <!-- <my-component></my-component>
    <my-component></my-component> -->
    {{ msg }}
    <my-component @onChildEvent="msgHandler" :list="list" title="biaoti" :age="age"></my-component>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld'
import Demo from "./components/Demo"
import FormComponent from "./components/FormComponent"
import MyComponent from "./components/MyComponent"

export default {
  name: 'App',
  data(){
    return{
      age:20,
      list:["iwen","ime"],
      msg:""
    }
  },
  components: {
    HelloWorld,
    Demo,
    FormComponent,
    MyComponent
  },
  methods:{
    msgHandler(data){
      this.msg = data;
    }
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
